﻿<sdk:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
            xmlns:didsoft_controls="clr-namespace:Didsoft.Silverlight.Controls;assembly=Didsoft.Silverlight.Controls"
            xmlns:didsoft_controls_data="clr-namespace:Didsoft.Silverlight.Controls.Data;assembly=Didsoft.Silverlight.Controls.Data"
            xmlns:didsoft_enums="clr-namespace:Didsoft.Silverlight.Utils.Enums;assembly=Didsoft.Silverlight.Utils"
            xmlns:didsoft_captcha="clr-namespace:Didsoft.Silverlight.Utils.Captcha;assembly=Didsoft.Silverlight.Utils"
            xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Didsoft.SalesLive.UI.Views.VwRegistroModal"
                      Width="757" Height="516">
    <Grid x:Name="LayoutRoot" Margin="2">

        <didsoft_controls:FormHeader TitleText="Registro Personal" DescriptionText="Registrese en SalesLive y disfrute de los beneficios del sistema">

            <Grid>
                
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="400"/>
                    <ColumnDefinition/>                    
                </Grid.ColumnDefinitions>

                <Grid Grid.Column="0">

                    <TextBlock Height="16" HorizontalAlignment="Left" Margin="6,6,0,0" x:Name="textBlock1" Text="DATOS PERSONALES" VerticalAlignment="Top" Width="140" FontWeight="Bold" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,28,0,0" x:Name="textBox1" VerticalAlignment="Top" Width="90" Text="{Binding PersonaObj.ApellidoPaterno, Mode=TwoWay}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="296,28,0,0" x:Name="textBox2" VerticalAlignment="Top" Width="98" Text="{Binding PersonaObj.ApellidoMaterno, Mode=TwoWay}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,57,0,0" x:Name="textBox3" VerticalAlignment="Top" Width="274" Text="{Binding PersonaObj.Nombre, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="18,32,0,0" x:Name="textBlock2" Text="Apellido Paterno:" VerticalAlignment="Top" Width="96" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="216,32,0,0" x:Name="textBlock3" Text="Ap. Materno:" VerticalAlignment="Top" Width="80" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="56,57,0,0" x:Name="textBlock4" Text="Nombres:" VerticalAlignment="Top" Width="66" />
                    
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="14,86,0,0" x:Name="textBlock5" Text="Recomendado Por:" VerticalAlignment="Top" Width="104" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="255,89,0,0" x:Name="textBlock6" Text="Genero:" VerticalAlignment="Top" Width="56" />
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="319,86,0,0" x:Name="cmbGenero"
                          SelectedItem="{Binding PersonaObj.Genero, Mode=TwoWay}"
                          VerticalAlignment="Top" Width="75" ItemsSource="{Binding Generos, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="14,123,0,0" x:Name="textBlock7" Text="Fecha Nacimiento:" VerticalAlignment="Top" Width="104" />
                    <sdk:DatePicker Height="23" HorizontalAlignment="Left" Margin="120,123,0,0" x:Name="datePicker1" VerticalAlignment="Top" Width="120" SelectedDate="{Binding PersonaObj.FechaNacimiento, Mode=TwoWay}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,152,0,0" x:Name="textBox4" VerticalAlignment="Top" Width="274" Text="{Binding PersonaObj.CorreoElectronico, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="10,152,0,0" x:Name="textBlock9" Text="Correo Clectronico:" VerticalAlignment="Top" Width="114" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,181,0,0" x:Name="textBox5" VerticalAlignment="Top" Width="274" Text="{Binding PersonaObj.SitioWeb, Mode=TwoWay}" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="45,181,0,0" x:Name="textBlock10" Text="Sitio Web :" VerticalAlignment="Top" Width="69" />
                    <CheckBox Content="Notificar Novedades" Height="16" HorizontalAlignment="Left" Margin="120,210,0,0" x:Name="checkBox1" VerticalAlignment="Top" IsChecked="{Binding PersonaObj.NotificarNovedades, Mode=TwoWay}" />
                    <Button Content="Guardar" Height="23"  HorizontalAlignment="Left" Margin="237,0,0,20" x:Name="button1" VerticalAlignment="Bottom" Width="75" Command="{Binding CmdGuardar, Mode=TwoWay}" />
                    <TextBlock FontWeight="Bold" Height="16" HorizontalAlignment="Left" Margin="10,230,0,0" x:Name="textBlock11" Text="DATOS DE USUARIO" VerticalAlignment="Top" Width="140" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="60,261,0,0" x:Name="textBlock12" Text="Usuario :" VerticalAlignment="Top" Width="57" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,257,0,0" x:Name="textBox6" VerticalAlignment="Top" Width="120" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="42,290,0,0" x:Name="textBlock13" Text="Contraseña :" VerticalAlignment="Top" />
                    <PasswordBox Height="23" HorizontalAlignment="Left" Margin="120,286,0,0" x:Name="passwordBox1" VerticalAlignment="Top" Width="120" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="7,315,0,0" x:Name="textBlock14" Text="Repita Contraseña:" VerticalAlignment="Top" />
                    <PasswordBox Height="23" HorizontalAlignment="Left" Margin="120,315,0,0" x:Name="passwordBox2" VerticalAlignment="Top" Width="120" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,344,0,0" x:Name="textBox7" VerticalAlignment="Top" Width="154" />
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,344,0,0" x:Name="textBlock15" Text="Pista contraseña:" VerticalAlignment="Top" />
                    <didsoft_captcha:CaptchaControl x:Name="captcha" QuantityCharacters="8" BackgroundColorStart="Gray" BackgroundColorEnd="White"
                                                SpaceBetweenLetters="23" IsUniqueBackgroundColor="False"
                                                IsUniqueForegroundColor="False" ForegroundColorStart="Red"
                                                ForegroundColorEnd="Blue" Margin="255,257,6,0" Height="48" VerticalAlignment="Top"/>
                    <TextBlock Height="23" HorizontalAlignment="Left" Margin="244,314,0,0" x:Name="textBlock16" Text="Texto Imagen :" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="332,311,0,0" x:Name="txtCaptcha" VerticalAlignment="Top" Width="62" />
                    <Button Content="Nuevo" Height="24" Margin="178,0,0,19" VerticalAlignment="Bottom" Command="{Binding CmdNuevo, Mode=TwoWay}" HorizontalAlignment="Left" Width="55" d:LayoutOverrides="HorizontalAlignment" />
                    <Button Content="Eliminar" Height="23" HorizontalAlignment="Left" Margin="319,0,0,19" x:Name="button2_Copy" Command="{Binding CmdEliminar, Mode=TwoWay}" VerticalAlignment="Bottom" Width="75" />
                </Grid>
                
                <Grid Grid.Column="1">
                    <sdk:DataGrid AutoGenerateColumns="True" Margin="0,0,0,6" x:Name="dataGrid1" Height="418" ItemsSource="{Binding Personas, Mode=TwoWay}" SelectedItem="{Binding PersonaObj, Mode=TwoWay}"/>

                </Grid>

            </Grid>


                
            
            
            
            
        </didsoft_controls:FormHeader>


    </Grid>
</sdk:ChildWindow>